|
![](/i/fill.gif) |
> Fa3ien <fab### [at] yourshoes skynet be> wrote:
>> I had a macro like this :
>> #macro Window (Height,Width,TopArc,MullionThick,...) //many parameters
>
>> When invoked, it looked like :
>> Window (250,300,25,5,2,1,1,4,6,120,5)
>
>> ...unreadable as hell. I would loved to be able to do
>> Window {height = 250 width = 130 mullion_thickness = 5 ...}
>> in any order, and with default values.
>
> You know, you can write /* comments */.
Yes, I could.
But I still have to
- specify ALL paramters
- specify them in strict order
With built-in functions, i can write :
light_source {... area_light ... circular orient adaptive 2}
or, as well
light_source {... area_light ... adaptive 2 orient circular}
I know that almost no programming language allows that kind
of parsing feature in user-defined functions, but I regret it.
Fabien.
Post a reply to this message
|
![](/i/fill.gif) |